package com.daxue.configtest.repository.remoteconfig;

import com.daxue.configtest.base.DAO;
import com.daxue.configtest.repository.remoteconfig.dao.tables.records.ConfigRecord;
import org.jooq.Field;

import static org.jooq.impl.DSL.field;
import static org.jooq.impl.DSL.name;
import static org.jooq.impl.SQLDataType.VARCHAR;

/**
 * @author daxue0929
 * @date 2023/3/11
 */

public interface ConfigRepository extends DAO<ConfigRecord, ConfigEntity> {

    String CONFIG_ID = "configId";
    Field<String> CONFIG_ID_FIELD = field(name(CONFIG_ID), VARCHAR);

    String ENV = "env";
    Field<String> ENV_FIELD = field(name(ENV), VARCHAR);

    String NAME = "name";
    Field<String> NAME_FIELD = field(name(NAME), VARCHAR);

    String APP = "app";
    Field<String> APP_FIELD = field(name(APP), VARCHAR);

    String LABEL = "label";
    Field<String> LABEL_FIELD = field(name(LABEL), VARCHAR);

    String TYPE = "type";
    Field<String> TYPE_FIELD = field(name(TYPE), VARCHAR);
}
